<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <?php echo $this->headTitle(); ?>
        <?php echo $this->jQuery(); ?>
        <?php echo $this->headScript()->appendFile($this->baseUrl() . '/js/jquery/jquery.accordion.js')
                        ->appendFile($this->baseUrl() . '/js/jquery/jquery.validate.js')
                        ->appendFile($this->baseUrl() . '/js/default.js');?>
        <?php echo $this->headLink()->prependStylesheet($this->baseUrl() . '/css/default.css'); ?>
         <script src="http://www.google.com/jsapi?key=ABQIAAAAr19Eul_kZsYCBnyMjSJbPhSS8zuUzs-phHbAd9SKTtjFtv728xQ8NcR0mWFbQ0Ita4R2Wzc7rTuWUQ" type="text/javascript"></script>
        <script type="text/javascript">
            google.load("search", "1", {"nocss" : true});
            $(document).ready(function(){
                /* accordion */
                $('#accordion').accordion({
                    active: <?php echo isset($this->accordion) ? $this->accordion : 0; ?>,
                    autoheight: false
                });
            });
        </script>
    </head>
    <body>
        <input type="hidden" id="accordion_state" value="<?php echo isset($this->accordion) ? $this->accordion : 0; ?>"/>
        <div id="container">
            <div id="header">
                <div class="powered">
                    <a href="http://www.last.fm"><img src="/img/lastfm.png" alt="Last.fm" title="Last.fm"/></a>
                    <a href="http://maps.google.com"><img src="/img/googlemaps.png" alt="Google Maps" title="Google Maps"/></a>
                </div>
                <div class="logo">
                    <img src="/img/logo_small.png" alt="MusicEvents" title="MusicEvents"/>
                </div>
                <div class="clear"></div>
            </div>
            <div id="content">
                <div id="sidebar">
                    <div id="accordion">
                        <a>Find Events by Artist</a>
                        <div>
                            <div>
                                <?php echo $this->artistForm; ?>
                            </div>
                        </div>
                        <a>Find Events by Location</a>
                        <div>
                            <div>
                                <?php echo $this->locationForm; ?>
                            </div>
                        </div>
                        <a>Find Events by Venue</a>
                        <div>
                            <div>
                                <?php echo $this->venueForm; ?>
                            </div>
                        </div>
                    </div>
                    <?php echo $this->layout()->sidecontent; ?>
                </div>
                <div id="main-content">
                    <?php echo $this->layout()->content; ?>
                </div>
                <div class="bottom_border"></div>
                <div class="clear"></div>
            </div>
            <div id="footer">
                <p>&copy; 2011 eventsfinder.ch All rights reserved | supported by
                    <a href="http://www.last.fm">www.last.fm</a> and
                    <a href="http://maps.google.com">maps.google.com</a> |
                    design by Simon Binkert
                </p>
            </div>
        </div>
    </body>
</html>
